﻿if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Accident]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Accident]
GO

CREATE TABLE [dbo].[Accident] (
	[AccidentId] [int] IDENTITY (1, 1) NOT NULL ,
	[AccidentDate] [datetime] NOT NULL ,
	[DriverId] [int] NOT NULL ,
	[TaxiId] [int] NOT NULL ,
	[Comments] [ntext] COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
	[Location] [varchar] (500) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
	[Fault] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
	[Damages] [ntext] COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
	[Costs] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
	[RepairedLocation] [varchar] (200) COLLATE SQL_Latin1_General_CP1_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
